package com.tairanchina.wiki.api.model.wiki.content.module;

/**
 * Created by 周靖捷 on 2016/10/6.
 */
public class TextFragmentModule implements FragmentModule {

    String text;

    public String getText() {
        return text;
    }

    public TextFragmentModule setText(String text) {
        this.text = text.replaceAll("[\\r\\n\\t]", "");
        return this;
    }

    @Override
    public String toMarkdown() {
        return text == null ? "" : text;
    }
}
